#if !defined(AFX_MYSPLITTER_H__48CDB3CB_1E7C_4B14_8F33_E3DB312F320D__INCLUDED_)
#define AFX_MYSPLITTER_H__48CDB3CB_1E7C_4B14_8F33_E3DB312F320D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MySplitter.h : header file
//

#define WM_SPLITTER_MOVED WM_USER + 10240 //LPARAM = new top-left position in parent window's client coordinates
/////////////////////////////////////////////////////////////////////////////
// CMySplitter window

class CMySplitter : public CWnd
{
// Construction
public:
	CMySplitter();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMySplitter)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL

// Implementation
public:
	void ReleaseCapture();
	int m_nRightDistance;
	BOOL RelayEvent(MSG *pMsg);
	BOOL Create(CWnd *pWndParent);
	virtual ~CMySplitter();

	// Generated message map functions
protected:
	int m_nLastLeft;
	BOOL m_bCollapsed;
	void CancelResizeLoop();
	BOOL m_bDownedOnHot;
	CWnd *m_pParentWnd;
	int m_oldX;
	CRect m_oldRect;
	CPoint m_ptDowned;
	BOOL m_bInResizeLoop;
	BOOL m_bCaptured;
	int m_cx, m_cy;
	static COLORREF m_clrPen1[2];
	static COLORREF m_clrPen2[2];
	static COLORREF m_clrPen3[2];
	static COLORREF m_clrPenArrow[2];
	BOOL m_bOnHot;
	//{{AFX_MSG(CMySplitter)
	afx_msg void OnPaint();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYSPLITTER_H__48CDB3CB_1E7C_4B14_8F33_E3DB312F320D__INCLUDED_)
